public class Test2 {
    public static int test() {
        try{
            int a = 10;
            return a;
        }catch (NullPointerException nullPointerException){
            return 1;
        }finally {
            return 9;
        }
        //最终返回值为多少？——9
    }

    public static void main(String[] args) {
        System.out.println(test());
    }
}
